/** \file    ExtendedFileOpenDlg.h
  * \brief   Specialized standard file open dialog for overlay importing.
  * \date    2002 - 2004
  * \author  Pavel Agapov
  * \author  Fedor Chelnokov
  * \version $Header: /home/cscom1r4/cvsroot/cs/icache/dll/ExtendedFileOpenDlg.h,v 1.2 2004/07/23 15:33:50 cscom1r4 Exp $
  */

#ifndef _ExtendedFileOpenDlg_h_
#define _ExtendedFileOpenDlg_h_

#include "icache/types.h"

namespace icache {

class ExtendedFileOpenDlg : public CFileDialog
{
	DECLARE_DYNAMIC(ExtendedFileOpenDlg)

public:
	bool				m_bAllowLoadAsStill;
	bool				m_bLoadAsStillImage;
	deinterlace_fields	m_DeinterlaceFields;
	deinterlace_method	m_DeinterlaceMethod;

public:
	ExtendedFileOpenDlg(LPCTSTR lpszDefExt, LPCTSTR lpszFilter, bool allow_still, CWnd * pParentWnd = NULL);

protected:
	DECLARE_MESSAGE_MAP()
	friend UINT CALLBACK ExtendedFileOpenDlgProc(HWND, UINT, WPARAM, LPARAM);
	virtual void OnInitDone();
	virtual void OnCustomCommand(UINT nID, UINT msg);
private:
	void EnableControls();
};

//{{AFX_INSERT_LOCATION}}

} //namespace icache

#endif //_ExtendedFileOpenDlg_h_
